<?php
/**
 *
 * Projet Authentic CMS
 * @file 	   autoload.php
 *
 * PHP version 5
 *
 *
 * @author     Poly Charly <CharlyPoly@gmail.fr>
 * @copyright  2009 Authentic Development Group
 * @license    GNU General Public License v3
 * @since      File available since Version 0.1.0
 * 
 */
function __autoload($class) {
	$core = array('router'=>'router.php');
	$system  = array('System'=>'system.php', 'error'=>'error'.DS.'error.php');
	if (array_key_exists($class, $core)) {
		return include(CORE_DIR.$core[$class]);
	} elseif (array_key_exists($class, $system)) {
		return include(SYSTEM_DIR.$system[$class]);
	} 
}
?>